<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function test() {
            window.location.href="/cpeople/login/?username=zhangsan&pwd=123456";
        }
    </script>
<body>
</head>
    <input type="button" onclick="test()" value="GET请求">
    <a href="/cpeople/login/?username=zhangsan&pwd=123">显示登录页面</a>
    <form action="/cpeople/login/" method="post">
        {% csrf_token %}
        <p>
             <label>用户名:</label><input type="text" name="username">
        </p>
        <p>
             <label>密&emsp;码:</label><input type="password" name="pwd">
        </p>
        <p>
             &emsp;&emsp;&emsp;&emsp;<input type="submit" name="value">
        </p>
    </form>
</body>
</html>